<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<%@ page import="com.scalar.chiptrack.utils.ConfigManager,
                 com.scalar.chiptrack.commons.Constants" %>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%
try
{
 %>
<chiptrack:checkLogon sourcePage="/packingSpecAction.do"/>
<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>
<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet">
<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<script language="javascript">

function selectProcessType()
{
    var form = document.packingSpecForm;
    form.action.value = 'loadPartNumbers';
    form.submit();
}
function selectPartNumber()
{
    var form = document.packingSpecForm;
    form.action.value = 'loadVendors';
    form.submit();
}
function selectVendor()
{
    var form = document.packingSpecForm;
    form.action.value = 'loadPackingSpecDetails';
    form.submit();
}
function finalSave()
{
    var form = document.packingSpecForm;
    form.action.value = 'savePackingSpecDetails';
    form.submit();

}
</script>
<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>
<!-- Side Navigation start -->
<%@ include file="/jsp/operations/releaseMenu.jsp" %>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">
<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<html:form name="packingSpecForm" type="com.scalar.chiptrack.operations.release.forms.PackingSpecForm" action="/packingSpecAction" >
<input type="hidden" name="action" value="<%= (String)request.getAttribute("action")%>">
<TABLE border="0" width="100%" align=center>
<TR><TD  class="NArialW" align="center">Packing Specifications</TD></TR>
<TR><TD>&nbsp;</TD></TR>
<TR><TD class='NArialL'><strong><FONT id="message" color='FF0000'></FONT></strong></TD></TR>
<TR><TD>
  <chiptrack:info styleClass="NArialL" />
  <chiptrack:errors styleClass="NArialL" />
  <chiptrack:messages type="info" styleClass="NArialL" />
</TD></TR>
<logic:equal name="showMessage" value="TRUE">
    <tr><td align='left'><font class='NArialS'color='blue'><b><%=Constants.NO_MODIFY_RIGHTS %></b></font></TD></TR>
</logic:equal>
<TR><TD COLSPAN=5>&nbsp;</TD></TR>
<TR><TD>
<TABLE  border="0" width="100%">
    <TR>
        <logic:present name="processList" >
            <TD width="20%" class="NArialL"></TD>
            <TD width="15%" class="NArialL">Process:</TD>
            <TD width="30%" class="NArialL">
                <html:select property="processType"  name="packingSpecForm" styleClass="txfield" onchange="selectProcessType()">
                    <html:option value="0">Select Process Type</html:option>
                    <html:options collection="processList" property="value" labelProperty="label"/>
                </html:select>
            </TD>
        </logic:present>
        <logic:present name="partNumbersList" >
            <TD width="15%" class="NArialL">Part Number:</TD>
            <TD width="30%" class="NArialL">
                <html:select property="processStepId"  name="packingSpecForm" styleClass="txfield" onchange="selectPartNumber()">
                    <html:option value="0">Select Part Number</html:option>
                    <html:options collection="partNumbersList" property="value" labelProperty="label"/>
                </html:select>
            </TD>
        </logic:present>
        <logic:notPresent name="partNumbersList" >
            <TD width="15%" class="NArialL">&nbsp;</TD>
            <TD width="30%" class="NArialL">&nbsp;</TD>
        </logic:notPresent>
    </TR>
    <TR>
        <logic:present name="vendorsList" >
            <TD width="20%" class="NArialL"></TD>
            <TD width="15%" class="NArialL">Vendor:</TD>
            <TD width="30%" class="NArialL">
                <html:select property="vendorId"  name="packingSpecForm" styleClass="txfield" onchange="selectVendor()">
                    <html:option value="0">Select Vendor</html:option>
                    <html:options collection="vendorsList" property="value" labelProperty="label"/>
                </html:select>
            </TD>
        </logic:present>
    </TR>
    <TR>
        <TD COLSPAN=""><IMG SRC="<%=chipTracContext%>/jsp/includes/images/spacer.gif" HEIGHT=20></TD>
    </TR>
    <logic:greaterThan property="vendorId" name="packingSpecForm" value="0">
     <TR>
            <TD width="20%" class="NArialL"></TD>
            <TD width="15%" class="NArialL">Lot Size</TD>
            <TD width="30%" class="NArialL"><nested:text property="lotSize" styleClass="txfield" size="16" maxlength="10" /></TD>
            <TD width="15%" class="NArialL">Vendor Code</TD>
            <TD width="30%" class="NArialL"><nested:text property="vendorCode" styleClass="txfield" size="16" maxlength="10" /></TD>
    </TR>
    <TR>
           <TD width="20%" class="NArialL"></TD>
           <TD width="15%" class="NArialL"> WB GRINDING </TD>
           <TD width="30%" class="NArialL"><nested:text property="wbGrinding" styleClass="txfield" size="16" maxlength="10" /></TD>
           <TD width="15%" class="NArialL">Process</TD>
           <TD width="30%" class="NArialL"><nested:text property="process" styleClass="txfield" size="16" maxlength="10" /></TD>
   </TR>
   <TR>
           <TD width="20%" class="NArialL"></TD>
           <TD width="15%" class="NArialL"> Pkg Type </TD>
           <TD width="30%" class="NArialL"><nested:text property="pkgType" styleClass="txfield" size="16" maxlength="10" /></TD>
           <TD width="15%" class="NArialL"> Plating Meterial </TD>
           <TD width="30%" class="NArialL"><nested:text property="platingMaterial" styleClass="txfield" size="16" maxlength="10" /></TD>
   </TR>
        <TR>
           <TD width="20%" class="NArialL"></TD>
           <TD width="15%" class="NArialL"> Package Type </TD>
           <TD width="30%" class="NArialL"><nested:text property="packageType" styleClass="txfield" size="16" maxlength="10" /></TD>
           <TD width="15%" class="NArialL"> MSL Level </TD>
           <TD width="30%" class="NArialL"><nested:text property="mslLevel" styleClass="txfield" size="16" maxlength="10" /></TD>
   </TR>
        <TR>
           <TD width="20%" class="NArialL"></TD>
           <TD width="15%" class="NArialL"> WB GRINDING </TD>
           <TD width="30%" class="NArialL"><nested:text property="specialRequest" styleClass="txfield" size="16" maxlength="10" /></TD>
           <TD width="15%" class="NArialL">Process</TD>
           <TD width="30%" class="NArialL"><nested:text property="bdNo" styleClass="txfield" size="16" maxlength="10" /></TD>
   </TR>
        <TR>
            <TD width="100%" colspan="5" align=center>
                <a href="javascript:finalSave();"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/save.gif" width="53" height="17" onmouseover="window.status='Click to Save Assembly Data';return true" onmouseout="window.status='';return true" title="Click here to Save Packing Specifications"></a>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="<%=chipTracContext%>/packingSpecAction.do"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/cancel.gif" width="53" height="17" onmouseover="window.status='Click to Cancel Changes';return true" onmouseout="window.status='';return true" title="Click here to Cancel Changes"></a>
            </TD>
        </TR>

    </logic:greaterThan>
    </TABLE>
   </TD>
 </TR>
</TABLE>
</html:form>
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</BODY>
</HTML>
<%
    }
    catch(Exception e)
    {
        e.printStackTrace();
    }
%>